//
//  YRYHomeTopHeaderView.h
//  luGongPro
//
//  Created by 王庆学 on 2017/7/26.
//  Copyright © 2017年 王庆学. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <XXNibBridge/XXNibBridge.h>

@class YRYHomeTopHeaderView,YGHomeTopItemModel;

@protocol YRYHomeTopHeaderViewDelegate <NSObject>

@optional
/*点击行情itme*/
- (void)homeTopHeaderView:(YRYHomeTopHeaderView *)headerView didSelectQuotationViewItemAtIndexPath:(NSIndexPath *)indexPath;

/*点击TopCollectionItem*/
- (void)homeTopHeaderView:(YRYHomeTopHeaderView *)headerView didSelectTopCollectionItemWithModel:(YGHomeTopItemModel *)model;

- (void)changeHeightOfHeaderView:(YRYHomeTopHeaderView *)headerView;

@end

@interface YRYHomeTopHeaderView : UIView

@property (nonatomic, strong) NSMutableArray *customizedQuoteList;

@property (nonatomic, weak) id<YRYHomeTopHeaderViewDelegate> delegate;

- (void)reloadData;

- (void)unSubcribeCurrentQuote;
- (void)subscribeCurrentVisibleQuote;

@end
